package com.xinqi.modules.prepare.folder.dto.req;

import com.xinqi.common.green.annotation.Text;
import com.xinqi.modules.prepare.common.PrepareLimitConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 备课区文件夹-请求对象-修改
 *
 * @author: system
 * @date: 2023/03/19
 */
@Data
@Schema(description = "备课区文件夹-请求对象-修改")
public class PrepareFileFolderUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键", example = "1001", hidden = true)
    private Long id;
    /**
     * 文件名称
     */
    @Text
    @Schema(description = "文件名称", example = "文件夹")
    @NotBlank(message = "文件夹名称不能为空")
    @Size(max = PrepareLimitConstant.NAME_WORKS_LIMIT, message = "名称不能超过15个字")
    private String name;
}
